package ltu.thole;

import java.util.List;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.wifi.ScanResult;

public class WiFiScanReceiver extends BroadcastReceiver {
	
	private WiFiScanner wifiScanner;

	public WiFiScanReceiver(WiFiScanner wifiDemo) {
		super();
		this.wifiScanner = wifiDemo;
	}

	@Override
	public void onReceive(Context c, Intent intent) {
		List<ScanResult> results = wifiScanner.wifi.getScanResults();
		wifiScanner.scanReceived(results);
	}
	
}